package com.woniuxy.service.impl;

import com.woniuxy.model.RoleModel;
import com.woniuxy.dao.RoleModelDao;
import com.woniuxy.service.RoleModelService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 马世亮
 * @since 2022-02-15
 */
@Service
public class RoleModelServiceImpl extends ServiceImpl<RoleModelDao, RoleModel> implements RoleModelService {

    @Resource
    private RoleModelDao roleModelDao;

    @Override
    public boolean isOrnot(Integer uId) {

        RoleModel getrole = roleModelDao.getrole(uId);
        if(null == getrole) return false;
        return true;
    }
}
